//Francisco "Kiko" Olvera
//loads and plays sounds and music
//sound.h

#pragma once
#include <fmod.h>
#include <fmod.hpp>
#pragma comment(lib,"Fmodex_vc.lib")


class sound
{
private:
	FMOD::System* fmod;
	FMOD::Sound** sounds;
	FMOD::Sound* music;
	FMOD::Channel* channel;
	int m_maxSounds, m_nextSound;
	float m_volume;
	bool hasMusic, musicPlaying, soundMuted;
public:
	sound();
	sound(int);
	void init(int);
	void Release();
	bool loadNextSound(char*);
	void loadMusic(char*);
	void playMusic();
	void toggleMusic();
	void toggleMuteSound();
	bool playSound(int);
	void MusicVolumeUp();
	void MusicVolumeDown();
	void setMusicVolume(float);
};